#pragma once

#include "parameter.h"

int openfd(char* path,int option)
{
    int fd = open(path, option);
    if (fd == -1)
    {
        perror("open lcd failed!\n");
        return -1;
    }

    return fd;
}